package com.qiaoba.common.base.entity.param;

import lombok.Getter;
import lombok.Setter;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;

/**
 * 时间查询参数
 *
 * @author ailanyin
 * @date 2023-09-24 09:22:26
 */
@Getter
@Setter
public class TimeParam implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 开始时间
     */
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date beginTime;

    /**
     * 结束时间
     */
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date endTime;

}
